package com.zhou.cloud.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

/**
 * @descrition: zookeeper实现注解加锁
 * @author: zhouyongjun
 * @date: 2022/11/1
 **/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RedisLock {
    String key();

    //是否可重入
    String requestId() default "";

    //超时时间
    int expireTime() default 0;
    //等待时间
    int waitTime() default 0;

    //时间单位
    TimeUnit timeUnit() default TimeUnit.SECONDS;
}
